﻿using System;

namespace Communication.Message.FpgaUpdate
{
	// Token: 0x02000014 RID: 20
	public class SendDataMessage : FlashUpdateChannelMessage
	{
		// Token: 0x060000DD RID: 221 RVA: 0x000031A0 File Offset: 0x000013A0
		public SendDataMessage(byte desId, byte funCode, byte[] datas, int dataLen, int offset, int totalRecTimeoutMillis, int spaceRecTimeoutMillis, int sendTimeoutMillis) : base(desId, funCode, datas, dataLen, offset, totalRecTimeoutMillis, spaceRecTimeoutMillis, sendTimeoutMillis)
		{
		}

		// Token: 0x060000DE RID: 222 RVA: 0x000031C0 File Offset: 0x000013C0
		public override int GetSendData(byte[] buffer, int offset)
		{
			int sendData = base.GetSendData(buffer, offset);
			if (sendData == 0)
			{
				this.errorCode = FlashUpdateErrorCode.SUCCESS;
				base.SetSuccess();
			}
			return sendData;
		}

		// Token: 0x060000DF RID: 223 RVA: 0x000031E8 File Offset: 0x000013E8
		protected override bool DealwithReceiveMsg()
		{
			return true;
		}
	}
}
